<?php

// Example of a User Model
class User extends Model {

    public $table = "users";
    public $fields = array("id","fullname","email","mobile","password","validated","mappsie_functions_access");

    public $defaults = array("validated" => "N", "mappsie_functions_access" => "N");
    
    public function getBookedDeals(){
        return DB::get()->getWhere('BookedDeal',"user_id={$this->id}");
    }
    
}
